﻿/**
 * Created by 123 on 2020/12/14.
 * */

#ifndef MIDDLEWARE_AUTODETECTREADER_H
#define MIDDLEWARE_AUTODETECTREADER_H

#include "DeviceReader.h"

typedef enum AutoDetectType {
    Ethernet,
    RapidIO
} AutoDetectType;

class ConnectionInfo;

class AutoDetectReader : public DeviceReader {

public:
    ~AutoDetectReader();

    AutoDetectReader(AutoDetectType detectType, std::string uuid);

    int64_t onRead(char *buffer, int64_t len) override;

private:
    ConnectionInfo *info = 0;
};


#endif /** MIDDLEWARE_AUTODETECTREADER_H */
